package com.hcss.core.common.mailmgt.model;
import javax.mail.*; 
/** 
 * @ClassName: MyAuthenticator 
 * @Description: TODO 邮件身份验证
 * @author lvfang
 * @date 2013-4-16 下午1:53:36 
 *  
 */
public class MyAuthenticator extends Authenticator{
	String userName=null;   
	String password=null;   
	    
	public MyAuthenticator(){   
	}   
	public MyAuthenticator(String username, String password) {    
	    this.userName = username;    
	    this.password = password;    
	}    
	protected PasswordAuthentication getPasswordAuthentication(){   
	    return new PasswordAuthentication(userName, password);   
	}   
}
